package com.jk.bgmainconsumer.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/jumpPage")
public class JumpPageController {
    @RequestMapping("/jumpPage")
    public String jumpPage(String page){
        return page;
    }
    @RequestMapping("/goodsDetails")
    public String toGoodsDetails(Integer id, Model model){
        model.addAttribute("id",id);
        return "goodsDetails";
    }
}
